package com.lannuokeji.biz.ac.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-17
 */
@TableName("g_ac_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 密码
     */
    private String password;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 黑名单：0白名单，
1  账号被列入黑名单：不能再借设备，进入相应页面系统有提示信息说明
     */
    @TableField("blackList")
    private Integer blackList;
    /**
     * 系统角色分类：
0学生，
1教师，
2管理员，
     */
    private Integer root;
    /**
     * 头像
     */
    private String image;
    /**
     * 用户是否同意系统的条约规范：0不同意，1 同意
     */
    private Integer agreed;
    /**
     * 教师名称
     */
    private String teacher;
    /**
     * 教师id
     */
    private String tid;
    /**
     * 业务权限id
     */
    @TableField("roleId")
    private Integer roleId;
    /**
     * 院系专业
     */
    private String major;
    /**
     * 状态：
0 审核中，
1 正常登录，
2 禁止登录 , 
3 审核不通过，
4 删除 
     */
    private Integer status;
    /**
     * 审核不通过，退回原因
     */
    private String back;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getBlackList() {
        return blackList;
    }

    public void setBlackList(Integer blackList) {
        this.blackList = blackList;
    }

    public Integer getRoot() {
        return root;
    }

    public void setRoot(Integer root) {
        this.root = root;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getAgreed() {
        return agreed;
    }

    public void setAgreed(Integer agreed) {
        this.agreed = agreed;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBack() {
        return back;
    }

    public void setBack(String back) {
        this.back = back;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
        ", id=" + id +
        ", name=" + name +
        ", password=" + password +
        ", email=" + email +
        ", phone=" + phone +
        ", blackList=" + blackList +
        ", root=" + root +
        ", image=" + image +
        ", agreed=" + agreed +
        ", teacher=" + teacher +
        ", tid=" + tid +
        ", roleId=" + roleId +
        ", major=" + major +
        ", status=" + status +
        ", back=" + back +
        "}";
    }
}
